//
//  BaseViewController.m
//  Camera
//
//  Created by gml on 2018/10/17.
//  Copyright © 2018年 gml. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
}

-(void)addContainerView
{
    self.containerView = [[UIView alloc] initWithFrame:CGRectMake((SCREEN_WIDTH-100)/2, SCREEN_HEIGHT/2-100,100 ,100)];
    self.containerView.backgroundColor = [UIColor redColor];
    [self.view addSubview:self.containerView];
    
    UIButton *startBtn = [[UIButton alloc] initWithFrame:CGRectMake((SCREEN_WIDTH-60)/2, SCREEN_HEIGHT-80, 60, 30)];
    [startBtn setTitle:@"开始" forState:UIControlStateNormal];
    startBtn.backgroundColor = [UIColor grayColor];
    [startBtn addTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:startBtn];
}
- (void)btnClicked:(UIButton *)btn
{
    
}

@end
